package com.es.www.absfactory;

import java.util.Calendar;

import com.es.www.absfactory.factory.AbstractFactory;
import com.es.www.absfactory.factory.FactoryProducer;

/**
 * @Created by michangtao
 * @Date 2022/5/11 16:11
 * @Description
 */
public class Store {

    public static void main(String[] args) {
        AbstractFactory factory = FactoryProducer.getFactory("美的");
//        AbstractFactory factory = FactoryProducer.getFactory("格力");
        factory.createFridge().produce();
        factory.createAirConditioner().produce();
    }
}
